package com.kgc.ssm.controller;

import com.kgc.ssm.entity.EnquireDetail;
import com.kgc.ssm.entity.dto.Result;
import com.kgc.ssm.entity.dto.SearchParam;
import com.kgc.ssm.service.EnquireDetailService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/enquireDetail")
public class EnquireDetailController {
    @Resource
    private EnquireDetailService enquireDetailService;

    @GetMapping("/page")
    public Result<List<EnquireDetail>>findPage(SearchParam param){
        return enquireDetailService.findPage(param);
    }

}
